package virtualstock.request;
import java.util.List;

import javax.ejb.Remote;

import virtualstock.exception.InvalidParameterException;
import virtualstock.exception.PlayerNotFoundException;
import virtualstock.util.PlayerDetails;

@Remote
public interface PlayerController {
	
	public Long createPlayer(PlayerDetails details) throws InvalidParameterException;
	
	public List<PlayerDetails> getPlayersOfGame(Long gameID) throws InvalidParameterException;
	
	public PlayerDetails getPlayerDetails(Long playerID) throws InvalidParameterException, PlayerNotFoundException;
	
	public void removePlayer(Long playerID) throws InvalidParameterException, PlayerNotFoundException;

	public List<PlayerDetails> getPlayersByEmail(String email) throws InvalidParameterException;

    public List<PlayerDetails> getAllPlayer();

}
